package com.syh.jn.scm.infrastructure.repository.model.base;

import com.syh.core.ddd.infrastructure.repository.model.SuperBusinessModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 上游商品扩展编码
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Entity
@Table(name = "T_BASE_BUSINESS_ENTITY_EXT_GOODS_INFO")
@EqualsAndHashCode(callSuper = true)
public class BusinessEntityExtGoodsInfoModel extends SuperBusinessModel {

  /**
   * 商品id
   */
  @Column(name = "GOODS_ID", columnDefinition = "bigint COMMENT '商品id'")
  private Long goodsId;
  /**
   * 商品扩展编号
   */
  @Column(name = "GOODS_EXT_CODE", columnDefinition = "varchar(50) COMMENT '商品扩展编号'")
  private String goodsExtCode;
  /**
   * 所属终端系统:DOWNSTREAM,OPERATION,SUPPLIER,UPSTREAM
   */
  @Column(name = "TERMINAL_TYPE", columnDefinition = "varchar(50) COMMENT '所属终端'")
  private String terminalType;
}
